package cn.bx.bid.dao;

import cn.bx.bid.entity.Department;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DepartmentDao {

	// 查找采购
	public Department find(long id);

	// 添加采购
	public int add(Department d);

	// 模糊查询
	public List<Department> search(@Param("pageNo") int pageNo, @Param("pageSize") int pageSize,
                                   @Param("departmentName") String departmentName);

	// 查询数量
	public int searchTotal(@Param("departmentName") String departmentName);

	// 更新
	public int update(Department d);

	// 单个删除
	public int del(long id);

	// 批量删除
	public int delALL(@Param("ids") long[] ids);

    List<Department> findALL();
}
